package com.yswy.domain.vo.gld.addOrUpate;

import com.yswy.domain.vo.gld.addOrUpate.base.BaseReqVO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 19401
 * @date 2022/6/6 17:09
 **/
@Data
public class AddOrUpdate extends BaseReqVO {
    @NotNull(message = "ID不能为空", groups = {UPDATE.class , DElECT.class})
    private Long id;
    @ApiModelProperty("软著")
    @NotEmpty(message = "软著不能为空", groups = {CREATE.class})
    private String softness;
    @ApiModelProperty("软著备案号")
    @NotEmpty(message = "软著备案号s不能为空", groups = {CREATE.class})
    private String softnessNo;
}
